<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" th:href="@{/lay/lib/layui-v2.5.5/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/lay/css/public.css}" media="all">
    <link rel="stylesheet" th:href="@{/css/icon-font.css}">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body  >
<div class="layui-form layuimini-form">
    <input id="id" th:value="${data.getId()}" hidden="hidden">

    <div class="layui-form-item">
        <label class="layui-form-label required">检查日期</label>
        <div class="layui-input-block">
            <input type="text" name="beginTime" th:value="${date}" class="layui-input" id="begin" placeholder="yyyy-MM-dd">
        </div>
    </div>





    <div class="layui-form-item">
        <label class="layui-form-label required">班级</label>
        <div id="message1" class="layui-input-block">
            <input type="text" id="className" name="className" th:value="${data.getClassName()}" th:onblur="exitClass()" lay-verify="required" lay-reqtext="班级名称不能为空" placeholder="请输入班级名称"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">应到人数</label>
        <div id="count" class="layui-input-block">
            <input readonly="readonly" type="text" id="classCount" name="classCount" th:value="${data.getClassCount()}" th:onblur="" lay-verify="required"
                   class="layui-input">
            <tip>*不可编辑</tip>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">实到人数</label>
        <div id="factPersonCount" class="layui-input-block">
            <input  type="number" id="factPerson" name="factPerson" th:value="${data.getFactperson()}" th:onblur="actualNumber()" lay-reqtext="实到人数不能为空" placeholder="请输入人数实到" lay-verify="required"
                   class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label required">出勤率</label>
        <div id="works" class="layui-input-block">
            <input readonly="readonly" type="number" id="work" name="work" th:value="${data.getWork()}" th:onblur="" lay-verify="required"
                   class="layui-input">
            <tip>*不可编辑</tip>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label required">上台次数</label>
        <div id="upStages" class="layui-input-block">
            <input type="number" id="upStage" name="upStage" th:value="${data.getUpstage()}" th:onblur="checkUpStage()" lay-verify="required" lay-reqtext="上台次数不能为空" placeholder="请输入上台次数"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">警告次数</label>
        <div id="warnCounts" class="layui-input-block">
            <input type="number" id="warnCount" name="warnCount" th:value="${data.getWarncount()}" th:onblur="checkWarnCount()" lay-verify="required" lay-reqtext="警告次数不能为空" placeholder="请输入警告次数"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">警告原因</label>
        <div id="remark" class="layui-input-block">
            <input type="text" id="remarks" name="remarks" th:value="${data.getRemarks()}" th:onblur="" lay-verify="required"  placeholder="可以为空"
                   class="layui-input">
        </div>
    </div>




    <div class="layui-form-item">
        <label class="layui-form-label required">检查人</label>
        <div id="stu" class="layui-input-block">
            <input type="text" id="studentName" name="studentName" th:value="${data.getStudentName()}" th:onblur="checkUserName()" lay-verify="required" lay-reqtext="检查人不能为空" placeholder="检查人不能为空"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
        </div>
    </div>
</div>
</div>
<script th:src="@{/lay/lib/jquery-3.4.1/jquery-3.4.1.min.js}"></script>
<script th:src="@{/lay/lib/layui-v2.5.5/layui.js}" charset="utf-8"></script>
<script th:src="@{/js/management/checkMorning/editCode.js}"></script>
<script th:src="@{/js/management/checkMorning/function.js}"></script>


</body>
</html>